package com.nursinghome.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Holidays {
    private Integer hid;//id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "开始时间不能为空")
    private Date startDate;//请假开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "结束时间不能为空")
    private Date endDate;//请假结束时间
    @NotBlank(message = "请假类型不能为空")
    private String htype;//请假类型
    private String description;//请假备注
    private Integer hstate;//请假状态 状态 1 审核中 2 拒绝 3 同意
    private Integer mid;//请假人id
    private MedicalStaff medicalStaff;// 一对一映射
}
